﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Solidi
{
	public class DependencyFactoryComposer : IDependencyComposer
	{
		private Func<IDependencyContainer, object> _factory;

		public DependencyFactoryComposer(Func<IDependencyContainer, object> factory)
		{
			_factory = factory;
		}

		public object Compose(IDependencyContainer container)
		{
			return _factory(container);
		}
	}
}
